<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            /*透视的视距：
               1.写给父级
               2.距离进的看到的元素变化就大，距离远时
                 看到的元素变化就小
            */
            perspective: 500px;
        }
        
        div {
            width: 200px;
            height: 200px;
            background-color: tomato;
            transform: rotateX(50deg);
            font-size: 30px;
            color: white;
            text-align: center;
            margin: 0 auto;
        }
    </style>
</head>

<body>
    <!-------------- perspective透视 -------------->
    <div>1</div>
</body>

</html>